check pairs in the array with sum equal to x